home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / sortln.doc < prev    next >
Text File  |  1995-03-31  |  585b  |  19 lines

  1. 'SORTLN' by Joe Horn; *quickly* sorts a list of numbers into order. 
  2.  
  3. 100% supported System RPL; will work on present & future HP 48's. 
  4.  
  5. Be sure only to use a list of REAL NUMBERS as the input to this 
  6. routine; any other objects in the list will cause undesirable results. 
  7.  
  8. Sample execution times of lists of random numbers: 
  9.  
  10. LIST SIZE   SECONDS TO SORT 
  11. ---------   --------------- 
  12.      16       0.4 
  13.      32       0.9 
  14.      64       2.4 
  15.     128       6.3 
  16.     256      16.5 
  17.     512      42.7 
  18.  
  19. Thanx to Brian Maguire & Mike Morgan for concepts used here.